package com.wgj.android.adapter;

import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.TextUtils;
import android.text.style.ForegroundColorSpan;
import android.widget.ImageView;

import com.jiaai.xui.adapter.XRecyclerViewAdapter;
import com.jiaai.xui.adapter.XViewHolder;
import com.jiaai.xui.utils.XDateUtils;
import com.jiaai.xui.utils.imageload.XImage;
import com.wgj.android.R;
import com.wgj.android.entity.ShopStore;
import com.wgj.android.entity.TVComment;

import java.util.List;

/**
 * Created by Administrator on 2018/3/16.
 */

public class ShopStoreAdapter extends XRecyclerViewAdapter<ShopStore> {
    public ShopStoreAdapter(@NonNull RecyclerView mRecyclerView, List<ShopStore> dataLists) {
        super(mRecyclerView, dataLists, R.layout.shop_stroe_item);
    }

    @Override
    protected void bindData(XViewHolder holder, ShopStore shopStore, int i) {
        holder.setImageUrl(R.id.shop_store_icon,shopStore.getShopavater());
        holder.setText(R.id.shop_name,shopStore.getShopName());
        holder.setText(R.id.create_tiem,shopStore.getCreatedate());
        holder.setText(R.id.shopCaption,shopStore.getShopCaption());
        holder.setText(R.id.memberNum,shopStore.getMemberNum().toString());
        holder.setText(R.id.orderNum,shopStore.getOrderNum().toString());

    }
}
